const mongoose = require('mongoose')
const schema = mongoose.Schema({
  create_time: { type: Number, required: true }, // 创建时间
  classificationId: { type: String, required: true }, // 分类id
  name: { type: String, default: '' }, // 名称
  desc: { type: String, default: '' }, // 备注
  hot: { type: Boolean, default: false } // 是否热门
})

module.exports = mongoose.model('GroupList', schema, 'group-list')
